#!/sbin/sh
#write by ww 06/07/23 BJ"
#LD_LIBRARY_PATH=/usr/local/lib; export LD_LIBRARY_PATH
case "$1" in
'start')
su - postgres -c ". ./.profile; ./bin/pg_ctl start -D ./data"
;;
'stop')
su - postgres -c ". ./.profile; ./bin/pg_ctl stop -W -D ./data -m fast"
exit 1
;;
esac
exit 0
